/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package control.benhan;

import com.toedter.calendar.JDateChooser;
import java.util.Date;
import javax.swing.JTextField;
import model.dao.addxuonghibernate.PhieuDieuTriDAO;

/**
 *
 * @author Admin
 */
public class PDTSuaDialog_Ctrl {
      public static final void suaPhieuDieuTri(JTextField tfMaPDT, JDateChooser jdateNgayBD, JDateChooser jdateNgayTaiKham){
        int maPDT = Integer.parseInt(tfMaPDT.getText());
        Date ngayBD = jdateNgayBD.getDate();
        Date ngayKT = jdateNgayTaiKham.getDate();
//        String tenBenh = tfTenBenh.getText();
        
        
        boolean pdt = PhieuDieuTriDAO.suaPhieuDieuTri(maPDT, ngayKT, ngayKT);
    }
    
}
